package hivMultiCompartment;


public class SemiTorus extends GridWorld{
	
	public SemiTorus(int sizeX, int sizeY, Model aModel, Organ2DSpace aOrgan) {
		super(sizeX, sizeY, aModel, aOrgan);
	}
	
	public int processedX (int x) {
		if ( x > xSize -1 || x < 0 ) {
			while ( x < 0 ) {
				x += xSize;
			}
			return x % xSize; 
		}
		else return x;
	}

}
